<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/24
 */
namespace app\billiards\model;

use think\Model;

class BbsCard extends Model{

    // 设置当前模型对应的完整数据表名称  帖子表
    protected $table = 'bbs_card';

    //模型连接数据库
    protected $connection  = 'tq';

    //关联用户表
    public  function getUser(){
        return  $this->hasOne('Userinfo','id','uid');
    }
}